<script setup>
// 获取当前年份
const currentYear = new Date().getFullYear()
</script>

<template>
  <div class="about-container">
    <el-card class="about-card">
      <template #header>
        <div class="about-header">
          <h2>关于我们</h2>
        </div>
      </template>

      <div class="about-content">
        <div class="about-section">
          <h3>系统介绍</h3>
          <p>Vue Admin Layout 是一个基于 Vue 3 和 Element Plus 开发的后台管理系统模板。它提供了常见的后台布局和功能，包括：</p>
          <ul>
            <li>响应式布局设计</li>
            <li>左侧菜单导航</li>
            <li>顶部标签页导航</li>
            <li>组件缓存功能</li>
            <li>数据表格展示</li>
          </ul>
        </div>

        <el-divider />

        <div class="about-section">
          <h3>技术栈</h3>
          <el-descriptions border>
            <el-descriptions-item label="前端框架">Vue 3</el-descriptions-item>
            <el-descriptions-item label="UI 组件库">Element Plus</el-descriptions-item>
            <el-descriptions-item label="路由管理">Vue Router</el-descriptions-item>
            <el-descriptions-item label="构建工具">Vite</el-descriptions-item>
          </el-descriptions>
        </div>

        <el-divider />

        <div class="about-section">
          <h3>联系我们</h3>
          <p>如果您有任何问题或建议，请随时联系我们：</p>
          <p><el-icon><Message /></el-icon> 邮箱：support@example.com</p>
          <p><el-icon><Phone /></el-icon> 电话：123-456-7890</p>
        </div>
      </div>

      <div class="about-footer">
        <p>© {{ currentYear }} Vue Admin Layout. 保留所有权利。</p>
      </div>
    </el-card>
  </div>
</template>

<style scoped>
.about-container {
  padding: 20px;
  height: calc(100% - 40px);
  overflow: auto;
}

.about-card {
  max-width: 800px;
  margin: 0 auto;
  height: auto;
}

.about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.about-content {
  padding: 10px 0;
}

.about-section {
  margin-bottom: 20px;
}

.about-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 500;
  color: #303133;
}

.about-section p {
  line-height: 1.6;
  color: #606266;
  margin: 10px 0;
}

.about-section ul {
  padding-left: 20px;
  margin: 10px 0;
}

.about-section ul li {
  line-height: 1.8;
  color: #606266;
}

.about-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #EBEEF5;
  text-align: center;
  color: #909399;
  font-size: 14px;
}

/* El组件样式调整 */
:deep(.el-descriptions__body) {
  width: 100%;
}

:deep(.el-descriptions__cell) {
  padding: 12px 10px;
}

:deep(.el-divider) {
  margin: 24px 0;
}
</style>
